.class public Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;


# instance fields
.field private a:Lcom/waiqin365/lightapp/view/SearchView;

.field private b:Landroid/view/View;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/ListView;

.field private g:Lcom/waiqin365/lightapp/chexiao/a/ae;

.field private h:Ljava/util/List;

.field private i:Lcom/waiqin365/lightapp/product/s;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->h:Ljava/util/List;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;)Lcom/waiqin365/lightapp/chexiao/a/ae;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->g:Lcom/waiqin365/lightapp/chexiao/a/ae;

    return-object v0
.end method

.method private a()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->c:Landroid/widget/TextView;

    new-instance v1, Lcom/waiqin365/lightapp/chexiao/hi;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/chexiao/hi;-><init>(Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    new-instance v1, Lcom/waiqin365/lightapp/chexiao/hj;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/chexiao/hj;-><init>(Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setOnSearchKeyChangedListener(Lcom/waiqin365/lightapp/view/hl;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    new-instance v1, Lcom/waiqin365/lightapp/chexiao/hk;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/chexiao/hk;-><init>(Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setSearchListener(Lcom/waiqin365/lightapp/view/hm;)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 6

    const/4 v3, 0x1

    const/16 v2, 0x8

    const/4 v5, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    invoke-static {p1}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/product/d/j;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/product/d/j;-><init>()V

    iput-boolean v3, v0, Lcom/waiqin365/lightapp/product/d/j;->l:Z

    iput-object p1, v0, Lcom/waiqin365/lightapp/product/d/j;->f:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/db/offlinedata/w;->b(Lcom/waiqin365/lightapp/product/d/j;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->h:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->f:Landroid/widget/ListView;

    invoke-virtual {v0, v5}, Landroid/widget/ListView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->d:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f080628

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-array v3, v3, [Ljava/lang/Object;

    iget-object v4, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->h:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v5

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "\uff1a"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->g:Lcom/waiqin365/lightapp/chexiao/a/ae;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/a/ae;->notifyDataSetChanged()V

    :goto_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->d()V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->f:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0
.end method

.method private b()V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setHint(Ljava/lang/CharSequence;)V

    new-instance v0, Lcom/waiqin365/lightapp/chexiao/a/ae;

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->h:Ljava/util/List;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/chexiao/a/ae;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->g:Lcom/waiqin365/lightapp/chexiao/a/ae;

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->g:Lcom/waiqin365/lightapp/chexiao/a/ae;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "selectedList"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/chexiao/a/ae;->a(Ljava/util/List;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->g:Lcom/waiqin365/lightapp/chexiao/a/ae;

    invoke-static {}, Lcom/waiqin365/lightapp/product/o;->a()Lcom/waiqin365/lightapp/product/o;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->i:Lcom/waiqin365/lightapp/product/s;

    iget-object v3, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->mContext:Landroid/content/Context;

    invoke-virtual {v1, v2, v3}, Lcom/waiqin365/lightapp/product/o;->a(Lcom/waiqin365/lightapp/product/s;Landroid/content/Context;)Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/a/ae;->a(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->g:Lcom/waiqin365/lightapp/chexiao/a/ae;

    invoke-static {}, Lcom/waiqin365/lightapp/chexiao/d/a;->o()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/a/ae;->d(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->g:Lcom/waiqin365/lightapp/chexiao/a/ae;

    new-instance v1, Lcom/waiqin365/lightapp/chexiao/hl;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/chexiao/hl;-><init>(Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/a/ae;->a(Lcom/waiqin365/lightapp/product/c/a;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->f:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->g:Lcom/waiqin365/lightapp/chexiao/a/ae;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->d()V

    return-void
.end method

.method private c()V
    .locals 1

    const v0, 0x7f0c0131

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/SearchView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    const v0, 0x7f0c0135

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->b:Landroid/view/View;

    const v0, 0x7f0c0137

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->c:Landroid/widget/TextView;

    const v0, 0x7f0c0132

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->d:Landroid/widget/TextView;

    const v0, 0x7f0c0134

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->e:Landroid/widget/TextView;

    const v0, 0x7f0c0133

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->f:Landroid/widget/ListView;

    return-void
.end method

.method private d()V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->g:Lcom/waiqin365/lightapp/chexiao/a/ae;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/a/ae;->m()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->b:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->c:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f0805d3

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->g:Lcom/waiqin365/lightapp/chexiao/a/ae;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/chexiao/a/ae;->m()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->b:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f03002a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "productModel"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/s;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->i:Lcom/waiqin365/lightapp/product/s;

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->i:Lcom/waiqin365/lightapp/product/s;

    if-nez v0, :cond_0

    sget-object v0, Lcom/waiqin365/lightapp/product/s;->s:Lcom/waiqin365/lightapp/product/s;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->i:Lcom/waiqin365/lightapp/product/s;

    :cond_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->c()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->b()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->a()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSearchPdActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "key"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setContent(Ljava/lang/CharSequence;)V

    return-void
.end method
